﻿using Nb.Common.Logs;
using Ninject.Modules;
using Ninject.Web.Common;

namespace Nb.Common.Caching
{
    public class CachingModule : NinjectModule
    {
        public override void Load()
        {
            Kernel.Bind<IPerApplicationCacheManager>().To<PerApplicationCacheManager>().InSingletonScope();
            Kernel.Bind<IPerSessionCacheManager>().To<PerSessionCacheManager>().InRequestScope();
            Kernel.Bind<IPerRequestCacheManager>().To<PerRequestCacheManager>().InRequestScope();
        }
    }
}
